package com.mdd.admin.service.order;

import com.mdd.admin.validate.order.SwitchedCarRecordCreateValidate;
import com.mdd.admin.validate.order.SwitchedCarRecordSearchValidate;
import com.mdd.admin.validate.order.SwitchedCarRecordUpdateValidate;
import com.mdd.admin.vo.order.SwitchedCarRecordListedVo;
import com.mdd.common.base.page.PageValidate;
import com.mdd.common.core.PageResult;

/**
 * 换车记录服务接口类
 * @author LikeAdmin
 */
public interface ISwitchedCarRecordService {

    /**
     * 换车记录列表
     *
     * @author LikeAdmin
     * @param pageValidate 分页参数
     * @param searchValidate 搜索参数
     * @return PageResult<OrderSwitchedCarRecordListedVo>
     */
    PageResult<SwitchedCarRecordListedVo> list(PageValidate pageValidate, SwitchedCarRecordSearchValidate searchValidate);

    /**
     * 换车记录新增
     *
     * @author LikeAdmin
     * @param createValidate 参数
     */
    void add(SwitchedCarRecordCreateValidate createValidate);

    /**
     * 换车记录编辑
     *
     * @author LikeAdmin
     * @param updateValidate 参数
     */
    void edit(SwitchedCarRecordUpdateValidate updateValidate);

    /**
     * 换车记录删除
     *
     * @author LikeAdmin
     * @param id 主键ID
     */
    void del(Long id);

}
